package team.seekers.hula.user.school.entity.dao;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 一个团队(或者说一个课程班)
 * </p>
 *
 * @author hbc
 * @since 2021-05-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "School对象", description = "一个学校")
@TableName(value = "school")
public class SchoolDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "创建者")
    private String userId;

    @ApiModelProperty(value = "学校名")
    private String name;

    @ApiModelProperty(value = "用户数")
    private Integer userCount;

    @ApiModelProperty(value = "用户数")
    private Double hulaCoin;

    @ApiModelProperty(value = "用户数")
    private Double hulaScore;

    @TableLogic
    private Integer isDeleted;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
